-- GENERATED SPELL FOR [Boulderfist Magus] --


function spell0_2567(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_2567', 0, 1)
end

function spell1_2567(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(11831,pUnit)
pUnit:RegisterEvent('Sorts_2567', 8343, 1)
end

function spell2_2567(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20822,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2567', 7000, 1)
end

function Sorts_2567(pUnit, Event)
local choix_sorts_2567 = math.random(0, 2)
if choix_sorts_2567 == 0 then
pUnit:RegisterEvent('spell0_2567', 1, 1)
end
if choix_sorts_2567 == 1 then
pUnit:RegisterEvent('spell1_2567', 1, 1)
end
if choix_sorts_2567 == 2 then
pUnit:RegisterEvent('spell2_2567', 1, 1)
end
end

function mob2567_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2567', math.random(1500, 3000), 1)
end

function mob2567_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2567_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2567_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2567, 1, 'mob2567_Action')
RegisterUnitEvent(2567, 2, 'mob2567_Leave')
RegisterUnitEvent(2567, 3, 'mob2567_Kill')
RegisterUnitEvent(2567, 4, 'mob2567_Die')
